package net.xdclass.online_xdclass;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @SpringBootApplication 标记这个是SpringBoot应用
 * ServletComponentScan 开启Servlet扫描，用于filter过滤器使用
 * MapperScan 配置扫描mapper路径
 * EnableScheduling 开启定时任务
 * EnableAsync 开启异步任务
 * EnableTransactionManagement 开启事务控制
 */
@SpringBootApplication
//配置扫描mapper路径
@MapperScan("net.xdclass.online_xdclass.mapper")
@EnableTransactionManagement
public class OnlineXdclassApplication {

	public static void main(String[] args) {
		SpringApplication.run(OnlineXdclassApplication.class, args);
	}

}
